from collections import defaultdict
dd = defaultdict(lambda: 'N/A')
dd['key1'] = 'abc'